home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
comm
/
mebbs
/
mebbsrip.lha
/
mebbsnet
/
rexx
/
welcome.REXX
Wrap
OS/2 REXX Batch file
|
1994-09-28
|
1KB
|
54 lines
/* detect RIP by Larry Cloud M3001*/
signal on ERROR
parse arg LineNumber
options results
DoorName = "CheckForRip";author = "Larry Cloud"
if( ~show( 'l', "mebbsarexx.library" ) )then do
if( ~addlib( "mebbsarexx.library", 0, -30, 0 ) )then do
say "Could not open library"
exit 10
end
end
call blank;string="Checking for a RIP terminal program...";call output;string="!";call output
string="
Please press return
";length=20;call input;rip=0;x=upper(typed)
if left(x,8)="RIPSCRIP" then rip=1
string="
"||d2c(12);call output
if rip=1 then do
string="mebbsnet:text/welcome.rip";call readfile doorname,linenumber,string
string="You should set your graphics type (Main Menu, Adjust Parameters) to 3."
call output
string="Please press return...";call getkey;string=d2c(12);call output
end
if rip=0 then do
string="mebbsnet:text/welcome.text";call readfile doorname,linenumber,string
end
signal getout
GETKEY:
call hotkey doorname,linenumber,string
hot=result
return
INPUT:
call prompt doorname,linenumber,string,length
typed=result;call cdetect doorname,linenumber
carrier=upper(result);if carrier = "NO CARRIER!" then signal error
return
OUTPUT:
call message doorname,linenumber,string,1
return
BLANK:
string = " ";call output;return
GETOUT:
call blank
call Exit_Door DoorName,LineNumber
exit 0
ERROR:
call Exit_Door DoorName,LineNumber
exit 0